package com.cyz.dao;


import java.sql.SQLException;
import java.util.List;

import com.cyz.pojo.User;


public interface UserDao {
	public void register(String userName, String password, String phone, String address) throws SQLException;
	public User getUserById(Integer id);
	public Integer getUserIdByUserName(String username);
	/////////////////////以下方法未实现
	
	public User getUserByName(String userName);
	public Integer getUserIdByName(String userName); //通过用户名查找用户ID
	public void addUser(User user);
	public void updateUser(User user); //更新用户信息
	public User findUserById(Integer id);
	public User findUserByUserName(String userName);
	public List<User> getAllUser(); //获取所有用户
	public Integer insertUser(User user); 
	public Integer deleteUser(User user); 
	public Integer getIdByUserName(String userName); 
	public String getPasswordByUserName(String name); 
	public void updateInfo(Integer id,String userName,String mobile,String address);
	public void changePassword(Integer id, String newPassword);
}
